
*�Centripetal Democratic Governance: A Theory and Global Inquiry�
* Gerring, Thacker, and Mareola
** Gerringetal_APSR
use "apsr2005.dta", clear

*quietly newey2 Bureaucratic_Quality_PRSF CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
*keep if e(sample)

ccode Country, from(cty) to(cow) gen(ccode)
replace ccode=370 if Country=="Belarus (Byelorussian SSR)"
replace ccode=346 if Country=="Bosnia-Herzegovina"
replace ccode=811 if Country=="Cambodia (Kampuchea)"
*replace ccode=352 if Country=="Channel Islands"
*replace ccode=352 if Country=="Cyprus, Turkish"
replace ccode=255 if Country=="Germany DR"
replace ccode=255 if Country=="Germany FR"
*replace ccode=352 if Country=="Isle of Man"
replace ccode=437 if Country=="Ivory Coast"
replace ccode=703 if Country=="Kyrgyztan"
*replace ccode=352 if Country=="Lichtenstein"
replace ccode=781 if Country=="Maldive Islands"
replace ccode=987 if Country=="Micronesia, Feda Stsa"
replace ccode=60 if Country=="Sta Kitts and Nevis"
replace ccode=57 if Country=="Sta Vincent and the Grenadines"
replace ccode=860 if Country=="Timor, East"
replace ccode=2 if Country=="United States of America"
replace ccode=816 if Country=="Vietnam DR"
replace ccode=817 if Country=="Vietnam Rep"
*replace ccode=352 if Country=="Virgin Islands (UaSa)"
replace ccode=990 if Country=="Western Samoa"
replace ccode=678 if Country=="Yemen AR"
replace ccode=680 if Country=="Yemen PDR"
replace ccode=679 if Country=="Yemen REP"
replace ccode=345 if Country=="Yugoslavia, FR (Serbia/Montenegro)"
replace ccode=352 if Country=="Cyprus, Greek (Cyprus)"

merge m:1 ccode using gattlist.dta, gen(m1)
drop if m1==2
merge m:1 ccode using wtolist.dta, gen(m2)
drop if m2==2

gen gatt = Year>=gattjoin
gen wto = Year>=wtojoin
gen gattwto = gatt==1 | wto==1

gen study = ""
foreach n in orig noth fe time fet ct yfe cyfe {
gen method_`n' = ""
gen dv_`n' = ""
gen b_gatt_`n' = .
gen se_gatt_`n'= .
gen pval_gatt_`n' = .
gen lo_gatt_`n'=.
gen hi_gatt_`n'=.
gen N_gatt_`n'=.
}
gen studynum=.
gen timetrend=""
qui do gatt.do

local ii = 1
xtset Banks Year
* This replicates column 1 of Table 2
* model 1
newey2 Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' orig
newey2 Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
  English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
  Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' noth
xtreg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
  English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
  Diamonds_MH_pcmil Protestant, fe vce(cl ccode)
gatt `ii' fe
newey2 Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa ///
  Asia LAC English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
  Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' time
xtreg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
  English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
  Diamonds_MH_pcmil Protestant, fe vce(cl ccode)
gatt `ii' fet
reg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
  English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
  Diamonds_MH_pcmil Protestant i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct

xtreg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
  English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
  Diamonds_MH_pcmil Protestant i.Year, fe vce(cl ccode)
gatt `ii' cyfe
xtreg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
  English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
  Diamonds_MH_pcmil Protestant, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1	
* This replicates column 2 of Table 2
* model 2
xtset Banks Year
newey2 Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin Oil_production_MH_pc Protestant, lag(1) force
gatt `ii' orig
newey2 Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC ///
	English_legal_origin Oil_production_MH_pc Protestant, lag(1) force
gatt `ii' noth
xtreg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC ///
	English_legal_origin Oil_production_MH_pc Protestant, fe vce(cl ccode)
gatt `ii' fe
newey2 Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC ///
	English_legal_origin Oil_production_MH_pc Protestant, lag(1) force
gatt `ii' time
xtreg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC ///
	English_legal_origin Oil_production_MH_pc Protestant, fe vce(cl ccode)
gatt `ii' fet
reg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF   Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC ///
  English_legal_origin Oil_production_MH_pc Protestant i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC ///
	English_legal_origin Oil_production_MH_pc Protestant i.Year , fe vce(cl ccode)
gatt `ii' cyfe
xtreg Bureaucratic_Quality_PRSF gattwto CENTRIP_02 Bureaucratic_Quality_PRS_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC ///
	English_legal_origin Oil_production_MH_pc Protestant, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1
* This replicates column 3 of Table 2
* model 3
xtset Banks Year
newey2 Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil, lag(1) force
gatt `ii' orig 
newey2 Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil, lag(1) force
gatt `ii' noth
xtreg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
	Oil_production_MH_pc Diamonds_MH_pcmil, fe vce(cl ccode)
gatt `ii' fe
newey2 Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil, lag(1) force
gatt `ii' time
xtreg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
	Oil_production_MH_pc Diamonds_MH_pcmil, fe vce(cl ccode)
gatt `ii' fet
reg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
  English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
  Oil_production_MH_pc Diamonds_MH_pcmil i.ccode#c.Timevar, cl(ccode) 
gatt `ii' ct
xtreg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
	Oil_production_MH_pc Diamonds_MH_pcmil i.Year, fe vce(cl ccode)
gatt `ii' cyfe
xtreg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
	Oil_production_MH_pc Diamonds_MH_pcmil, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1
* This replicates column 3 of Table 2
xtset Banks Year
newey2 Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin  Socialist_legal_origin Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60, lag(1) force
gatt `ii' orig
newey2 Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin ///
	Socialist_legal_origin Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60, lag(1) force
gatt `ii' noth
xtreg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin ///
	Socialist_legal_origin Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60, fe vce(cl ccode)
gatt `ii' fe
newey2 Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin ///
	Socialist_legal_origin Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60, lag(1) force
gatt `ii' time
xtreg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin ///
	Socialist_legal_origin Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60, fe vce(cl ccode)
gatt `ii' fet
reg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin ///
  Socialist_legal_origin Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin ///
	Socialist_legal_origin Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 i.Year, fe vce(cl ccode)
gatt `ii' cyfe
xtreg Tax_Revenue_WDIF gattwto CENTRIP_02 Tax_Revenue_WDI_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Asia LAC English_legal_origin ///
	Socialist_legal_origin Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1	
* This replicates column 5 of Table 2
* model 4
xtset Banks Year
newey2 Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil, lag(1) force
gatt `ii' orig
newey2 Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil, lag(1) force
gatt `ii' noth
xtreg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil, fe vce(cl ccode)
gatt `ii' fe
newey2 Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil, lag(1) force
gatt `ii' time
xtreg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil, fe vce(cl ccode)
gatt `ii' fet
reg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
  Diamonds_MH_pcmil i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil i.Year , fe vce(cl ccode)
gatt `ii' cyfe
xtreg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1
* This replicates column 6 of Table 2
* model 5
xtset Banks Year
newey2 Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin Latitude_ln Pop_Total_ln_WDI_60 Distance_fincenter_min Diamonds_MH_pcmil, lag(1) force
gatt `ii' orig
newey2 Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin ///
	Latitude_ln Pop_Total_ln_WDI_60 Distance_fincenter_min Diamonds_MH_pcmil, lag(1) force
gatt `ii' noth
xtreg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin ///
	Latitude_ln Pop_Total_ln_WDI_60 Distance_fincenter_min Diamonds_MH_pcmil, fe vce(cl ccode)
gatt `ii' fe
newey2 Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin ///
	Latitude_ln Pop_Total_ln_WDI_60 Distance_fincenter_min Diamonds_MH_pcmil, lag(1) force
gatt `ii' time
xtreg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin ///
	Latitude_ln Pop_Total_ln_WDI_60 Distance_fincenter_min Diamonds_MH_pcmil, fe vce(cl ccode)
gatt `ii' fet
reg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin ///
 Latitude_ln Pop_Total_ln_WDI_60 Distance_fincenter_min Diamonds_MH_pcmil i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin ///
	Latitude_ln Pop_Total_ln_WDI_60 Distance_fincenter_min Diamonds_MH_pcmil i.Year , fe vce(cl ccode)
gatt `ii' cyfe
xtreg Risk_EuromoneyF gattwto CENTRIP_02 Risk_Euromoney_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin ///
	Latitude_ln Pop_Total_ln_WDI_60 Distance_fincenter_min Diamonds_MH_pcmil, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1
* I'm skipping colum 7,8 because they're about trade openness
* Ditto 9,10 because they're about gdppc

* infant mortality rate
* model 6
xtset Banks Year
newey2 IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' orig
newey2 IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' noth
xtreg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil ///
	Protestant, fe vce(cl ccode)
gatt `ii' fe
newey2 IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil ///
	Protestant, lag(1) force
gatt `ii' time
xtreg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil ///
	Protestant, fe vce(cl ccode)
gatt `ii' fet
reg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
 Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil ///
 Protestant i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil ///
	Protestant i.Year , fe vce(cl ccode)
gatt `ii' cyfe
xtreg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin ///
	Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil ///
	Protestant, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1


* infant mortality rate
* model 7
xtset Banks Year
newey2 IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC   Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc  Protestant, lag(1) force
gatt `ii' orig

newey2 IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC  ///
	Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc  Protestant, lag(1) force
gatt `ii' noth
xtreg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC  ///
	Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc  ///
	Protestant, fe vce(cl ccode)
gatt `ii' fe
newey2 IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC  ///
	Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc  ///
	Protestant, lag(1) force
gatt `ii' time
xtreg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC  ///
	Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc  ///
	Protestant, fe vce(cl ccode)
gatt `ii' fet
reg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC  ///
 Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc  ///
 Protestant i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC  ///
	Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc  ///
	Protestant i.Year , fe vce(cl ccode)
gatt `ii' cyfe
xtreg IMR_ipolate_lnF gattwto CENTRIP_02 IMR_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa LAC  ///
	Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc  ///
	Protestant, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1


*  literacy
* model 8
xtset Banks Year
newey2 Illiteracy_imputed_lnF gattwto CENTRIP_02 Illiteracy_imputed_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' orig
newey2 Illiteracy_imputed_lnF gattwto CENTRIP_02 Illiteracy_imputed_ln_wgeoF Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' noth
xtreg Illiteracy_imputed_lnF gattwto CENTRIP_02 Illiteracy_imputed_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil Protestant, fe vce(cl ccode)
gatt `ii' fe
newey2 Illiteracy_imputed_lnF gattwto CENTRIP_02 Illiteracy_imputed_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
	Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' time
xtreg Illiteracy_imputed_lnF gattwto CENTRIP_02 Illiteracy_imputed_ln_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil Protestant, fe vce(cl ccode)
gatt `ii' fet
reg Illiteracy_imputed_lnF gattwto CENTRIP_02 Illiteracy_imputed_ln_wgeoF   Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
  English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
  Diamonds_MH_pcmil Protestant i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg Illiteracy_imputed_lnF gattwto CENTRIP_02 Illiteracy_imputed_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil Protestant i.Year, fe vce(cl ccode)
gatt `ii' cyfe
xtreg Illiteracy_imputed_lnF gattwto CENTRIP_02 Illiteracy_imputed_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil Protestant, fe i(Year) vce(cl Year)
gatt `ii' yfe 
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1


* literacy
* model 9
xtset Banks Year
newey2 Illiteracy_imputed_lnF gattwto  Illiteracy_imputed_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC English_legal_origin  Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' orig
newey2 Illiteracy_imputed_lnF gattwto  Illiteracy_imputed_ln_wgeoF Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC ///
	English_legal_origin  Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' noth
xtreg Illiteracy_imputed_lnF gattwto  Illiteracy_imputed_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC ///
	English_legal_origin  Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
	Diamonds_MH_pcmil Protestant, fe vce(cl ccode)
gatt `ii' fe
newey2 Illiteracy_imputed_lnF gattwto  Illiteracy_imputed_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC ///
	English_legal_origin  Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
	 Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' time
xtreg Illiteracy_imputed_lnF gattwto  Illiteracy_imputed_ln_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC ///
	English_legal_origin  Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
	Diamonds_MH_pcmil Protestant, fe vce(cl ccode)
gatt `ii' fet
reg Illiteracy_imputed_lnF gattwto  Illiteracy_imputed_ln_wgeoF   Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC ///
  English_legal_origin  Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
  Diamonds_MH_pcmil Protestant i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg Illiteracy_imputed_lnF gattwto  Illiteracy_imputed_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC ///
	English_legal_origin  Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
	Diamonds_MH_pcmil Protestant i.Year, fe vce(cl ccode)
gatt `ii' cyfe
xtreg Illiteracy_imputed_lnF gattwto  Illiteracy_imputed_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa  LAC ///
	English_legal_origin  Socialist_legal_origin  Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
	Diamonds_MH_pcmil Protestant, fe i(Year) vce(cl Year)
gatt `ii' yfe 
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1


* literacy
* model 10
xtset Banks Year
newey2 Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' orig
newey2 Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
    English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' noth
xtreg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
    English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
    Diamonds_MH_pcmil Protestant, fe vce(cl ccode)
gatt `ii' fe
newey2 Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
    English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
    Oil_production_MH_pc Diamonds_MH_pcmil Protestant, lag(1) force
gatt `ii' time
xtreg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
	English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
	Diamonds_MH_pcmil Protestant, fe vce(cl ccode)
gatt `ii' fet
reg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF   Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
 English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
  Diamonds_MH_pcmil Protestant i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
    English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
    Diamonds_MH_pcmil Protestant i.Year, fe vce(cl ccode)
gatt `ii' cyfe
  xtreg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
    English_legal_origin  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min Oil_production_MH_pc ///
    Diamonds_MH_pcmil Protestant, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1
    

*  literacy
* model 11
xtset Banks Year
newey2 Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  Protestant, lag(1) force
gatt `ii' orig
newey2 Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
      Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  Protestant, lag(1) force
gatt `ii' noth
xtreg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
      Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
     Protestant, fe vce(cl ccode)
gatt `ii' fe
newey2 Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF Timevar Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC ///
      Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min ///
     Protestant, lag(1) force
gatt `ii' time
xtreg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF Timevar  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
	  Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
	 Protestant, fe vce(cl ccode)
gatt `ii' fet
reg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF   Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
   Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
   Protestant i.ccode#c.Timevar, cl(ccode)
gatt `ii' ct
xtreg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
      Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
     Protestant i.Year, fe vce(cl ccode)
gatt `ii' cyfe
  xtreg Life_Expectancy_ipolate_lnF gattwto CENTRIP_02 Life_Expectancy_ln_wgeoF  Polity4_imp_sum_ln GDPpc_imputed_ln_60 Africa Asia LAC /// 
      Socialist_legal_origin Latitude_ln Ethnic_fractionaliz_Alesina Pop_Total_ln_WDI_60 Distance_fincenter_min  ///
     Protestant, fe i(Year) vce(cl Year)
gatt `ii' yfe
replace studynum = `ii' if _n==`ii'   
replace timetrend="year" if _n==`ii'
local ii=`ii'+1	
	
replace study = "Gerring et al" if studynum~=. 	

keep study-timetrend
drop if studynum==.
compress
save gerring.dta , replace


	
	
